package main

import "net"

func Dial(network, address string) (net.Conn, error)  {
	var d net.Dialer
	return d.Dial(network, address)
}

type Writer interface {
	Write(p []byte) (n int, err error)
}

type Closer interface {
	Close()	error
}

//错误接口的定义格式
type error interface {
	Error() string
}


